<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
    
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Show all users</title>
</head>
<body>
	<table>
		<c:forEach items="${customers }" var="cust">
			<tr>
				<td>${cust.id }</td>			
				<td>${cust.name }</td>
				<td>${cust.sal }</td>
				<td>${cust.sex }</td>
				<td>${cust.birth }</td>
				<td>${cust.favorites}</td>
				<td><a href="del?id=${cust.id }">删除</a></td>
				<td><a href="update?id=${cust.id }">更新</a></td>
			</tr>
		</c:forEach>
	
	</table>
</body>
</html>

<!-- private Integer id;
	private String name;
	private double sal;
	private boolean sex;
	private Date birth;
	private List<Favorite> favorites;
	 -->